﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.Pay
{
    /// <summary>
    /// 获取店铺商品销量统计
    /// </summary>
    public class GetStoreGoodsStatParams:PayUser
    {
        /// <summary>
        /// 店铺ID
        /// </summary>
        [Required(ErrorMessage = "店铺ID不能为空")]
        public int? StoreID { get; set; }

        /// <summary>
        /// 排序方式：<br/>
        /// 0：依次按 销售数量降序、实收金额降序、商品名称升序 排序<br/>
        /// 1：依次按 实收金额降序、销售数量降序、商品名称升序 排序
        /// </summary>
        public int SortType { get; set; }

        /// <summary>
        /// 付款开始时间
        /// </summary>
        [Required(ErrorMessage = "付款开始时间不能为空")]
        public DateTime? PayDateStart { get; set; }

        /// <summary>
        /// 付款截止时间
        /// </summary>
        [Required(ErrorMessage = "付款截止时间不能为空")]
        public DateTime? PayDateEnd { get; set; }
    }
}
